-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add quotations around filenames with spaces. exa pr#1165 #318
Conversation
Wait, are we doing this before #195, not sure if we came to any conclusions on element. |
This came about from the referenced issue + digging up a couple of the remaining exa PR's.. I don't remember this one being the one we were waiting on clap for, but that is perfectly fine with me either way as I think it's a good 1.0 addition. |
Just tested this locally, looks solid 👍 ... but I agree we should wait for clap and the properly review this. |
I think quotes should use a different color when they’re not part of the filename but added by exa, so that we can see immediately that they’re not part of the filename Edit: For immediate and future reference, my take on the quoting styles we would like and they should work: |
Uh that's ah really nice idea :o :) |
Maybe we shouldn't block this until clap is done, given how big of a task that turned out to be? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :) ... just marked a few formatting nitpicks :D
@gierens those lines were all left over from stripping the other functionality from the PR and fixing merge conflicts, just to give some context. fixing now :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add completions for zsh and fish, and add it to the manpage. You don't have to do bash because #400 will probably do it.
That's a good idea, but what happens when you use |
Yeah makes total sense ... I mean without rustfmt such things are bound to happen ... that's why I made the PR for that. :D |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we do a hacky |
Had to fix merge conflicts with main.. idk why tests didn't pass. seems to still work fine locally. I'll look at this deeper |
For the unit tests action your code is not formatted and as for nix the code doesn't follow nix flake check guidelines. |
4496892
to
31fa89d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checked out the changes, still seem good to me.
I know |
There are several cases where this can help ... to actually see trailing spaces, to directly copy paste those filenames into further commands without having to add the quotes manually, and of course also for piping eza output into other things ... If you don't want to see the quotes to can use the |
This comment was marked as duplicate.
This comment was marked as duplicate.
oh cool, my PR finally did get merged, without credit but alas :3
My motivation was: KDE's Konsole relies on the quotes for shell integration stuff, like hovering, CTRL+clicking, or highlighting file names by double click. |
Yeah looks like that is my fault, I think the original PR cafk moved over from exa had ping'd you as the author, but that ended up sitting around forever on an old branch so I had to fix so many conflicts and whatnot that I put in a new PR, and only put the link ( My apologies, and thank you for the contribution ❤️ |
I think the different color for eza quotes from @ariasuni is a great idea, cause as it is it's hard to see at a glance that it was added by eza and not part of the name. Maybe using the same color but more pale or darker? Since it's mostly a technicality it does not need to be as visible as the rest. Also is it possible to have the same type of quotes for all? For instance if a folder uses single quotes in its filename eza will add double quote for that folder but will still use single quotes for the rest, it's kind of messy. Quotes also break alignment I'd say, is it possible to add a spacing to those that don't need quotes, or maybe someone has a better idea for that? Adding quotes to all? Not sure. |
@John-Gee It would probably be a good idea to open an issue or discussion for this, that way your feedback wont be lost! |
#311
the commit history was a mess on the original PR, and its time to revisit this :D
feedback/testers needed